CRPEngine::LogOnSQLServerWithPrivateInfo

Use CRPEngine::LogOnSQLServerWithPrivateInfo to allow the Crystal Report Engine to "piggyback" your application's existing connection to a Server. This lowers the number of connections established by a workstation, reducing application time and network traffic. It also prevents a Crystal Reports LogOff call from disconnecting an application's existing connection to the Server.

Syntax
BOOL LogOnSQLServerWithPrivateInfo (
        const _TCHAR *dllName,
        void *privateInfo );
Parameters

dllName

Specifies the name of the DLL that was used when establishing a connection to the Server (when the report was first created). For example, if a report was created using an ODBC data source, specify the filename "PDSODBC.DLL". For more information on possible database DLLs, refer to Crystal Reports Developer Runtime Help (Runtime.hlp).

privateInfo

Specifies a pointer to the application's handle to the Server connection. In your application, a connection to the Server must already be established before this method is called. Pass the HDBC (handle to a database connection) from this connection to the privateInfo parameter.

Returns
Remarks


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com